package com.csd.homework1.Controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/square")
public class SquareController {
    @GetMapping ("/4")
    public String getsquare(){
        int x= (int) Math.pow(4,2);
        return String.valueOf(x);
    }
}
